package com.hospital.workstation.domain.bo;

import com.hospital.common.core.validate.AddGroup;
import com.hospital.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.hospital.common.core.domain.BaseEntity;

/**
 * 不良反应/事件记录表业务对象 electronic_bad_record_info
 *
 * @author hospital
 * @date 2024-05-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ElectronicBadRecordInfoBo extends BaseEntity {

    /**
     * 主键id
     */
    //@NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 监测表id
     */
    //@NotNull(message = "监测表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long monitorId;

    /**
     * 商品名称
     */
    //@NotBlank(message = "商品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String goodsName;

    /**
     * 批准文号
     */
    //@NotBlank(message = "批准文号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String authorizeNo;

    /**
     * 通用名称（含剂型）
     */
    //@NotBlank(message = "通用名称（含剂型）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String generalName;

    /**
     * 生产厂家
     */
    //@NotBlank(message = "生产厂家不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productFactory;

    /**
     * 批号
     */
    //@NotBlank(message = "批号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String batchNo;

    /**
     * 用法用量（次剂型、途径、日次数）
     */
    //@NotBlank(message = "用法用量（次剂型、途径、日次数）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String usageAmount;

    /**
     * 使用起止时间
     */
    //@NotBlank(message = "使用起止时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String beginEndDate;

    /**
     * 用药原因
     */
    //@NotBlank(message = "用药原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String usePillsReason;


}
